package com.bw.user.mvvm.model;

import com.bw.user.entity.CancelEntity;
import com.bw.user.entity.ConfirmEntity;
import com.bw.user.entity.FindPwdEnttiy;
import com.bw.user.entity.LoginEntity;
import com.bw.user.entity.OrderListEntity;
import com.bw.user.entity.PaysinEntity;
import com.bw.user.entity.RegiserEntity;
import com.bw.user.entity.RestPwdEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * @author KK
 * @description:
 * @date :2021/10/19 10:58
 */
public interface Api {

    @POST("userCenter/login")
    Observable<LoginEntity> requestLogin(@Body RequestBody body);

    @POST("userCenter/register")
    Observable<RegiserEntity> requestRegiser(@Body RequestBody body);


    @POST("userCenter/forgetPwd")
    Observable<FindPwdEnttiy> requestFindpwd(@Body RequestBody body);

    @POST("userCenter/resetPwd")
    Observable<RestPwdEntity> requestRestpwd(@Body RequestBody body);

    //动态获取订单列表
    @POST("order/getOrderList")
    Observable<OrderListEntity> requestOrderList(@Body RequestBody body);

    //确认收货
    @POST("order/confirm")
    Observable<ConfirmEntity> requestConfirm(@Body RequestBody body);

    //取消订单
    @POST("order/cancel")
    Observable<CancelEntity> requestCannel(@Body RequestBody body);

    //请求支付宝sign
    @POST("pay/getPaySign")
    Observable<PaysinEntity> requestPaysign(@Body RequestBody body);



}
